package pluginMain;

import org.bukkit.event.Event;
import org.bukkit.event.Listener;
import org.bukkit.plugin.EventExecutor;
import org.bukkit.plugin.Plugin;
import org.bukkit.event.*;

public class EventListener implements Listener {
	private Plugin parentPlugin;

	public EventListener(Plugin _p) {
		parentPlugin = _p;
	}

	public void AddEventListener(EventExecutor func, Class<? extends Event> event) {
		parentPlugin
				.getServer()
				.getPluginManager()
				.registerEvent(event, this, EventPriority.NORMAL, func,
						parentPlugin);
	}

}